package com.tmt.im.manager.controller.vo;

import com.tmt.springboot.common.annotation._JsonBinding;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Nullable;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/10/11 12:19
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "个人设置参数对象", description = "个人设置参数对象")
public class PersonalSettingVo implements Serializable {

    @Serial
    private static final long serialVersionUID = -462105784482678869L;

    @Schema(description = "配置参数对象ID")
    @NotNull(message = "配置参数对象ID不能为空")
    private Long id;

    @Schema(description = "是否开启免打扰")
    @Nullable
    private Boolean enableNewMsgNotify;

    @Schema(description = "新消息到达是否有声音提示")
    @Nullable
    private Boolean enableSoundHint;

    @Schema(description = "新消息到达是否有震动提示")
    @Nullable
    private Boolean enableShockHint;

    @Schema(description = "是否允许申请加我为好友")
    @Nullable
    private Boolean enableAddFriend;

    @Schema(description = "加好友是否需要本人同意")
    @Nullable
    private Boolean reviewOnAddingFriend;

    @Schema(description = "通过手机号码加好友")
    @_JsonBinding("MOBILE")
    @Nullable
    private Boolean enableMobile;

    @Schema(description = "通过聊天群组加好友")
    @_JsonBinding("CHAT_SESSION")
    @Nullable
    private Boolean enableSession;

    @Schema(description = "通过二维码加好友")
    @_JsonBinding("QR_CODE")
    @Nullable
    private Boolean enableQrCode;

    @Schema(description = "通过用户ID加好友")
    @_JsonBinding("ID")
    @Nullable
    private Boolean enableUserId;

    @Schema(description = "通过用户名片加好友")
    @_JsonBinding("BUSINESS_CARD")
    @Nullable
    private Boolean enableCard;

}
